package com.thomsonreuters.ce.edps.model.impl;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.thomsonreuters.ce.edps.model.IAssetOrganisationAssoc;
import com.thomsonreuters.ce.edps.model.IPhysicalAsset;


/** @author Hibernate CodeGenerator */
public class AssetOrganisationAssoc implements Serializable, IAssetOrganisationAssoc {

    /** identifier field */
    private BigDecimal id;

    /** persistent field */
    private BigDecimal ditAssocTypeId;

    /** persistent field */
    private String organisationName;

    /** nullable persistent field */
    private Double percentage;

    /** persistent field */
    private String createBy;

    /** persistent field */
    private Date createDate;

    /** persistent field */
    private String modifyBy;

    /** persistent field */
    private Date modifyDate;

    /** persistent field */
    private IPhysicalAsset physicalAsset;

    /** full constructor */
    public AssetOrganisationAssoc(BigDecimal id, BigDecimal ditAssocTypeId, String organisationName, Double percentage, String createBy, Date createDate, String modifyBy, Date modifyDate, IPhysicalAsset physicalAsset) {
        this.id = id;
        this.ditAssocTypeId = ditAssocTypeId;
        this.organisationName = organisationName;
        this.percentage = percentage;
        this.createBy = createBy;
        this.createDate = createDate;
        this.modifyBy = modifyBy;
        this.modifyDate = modifyDate;
        this.physicalAsset = physicalAsset;
    }

    /** default constructor */
    public AssetOrganisationAssoc() {
    }

    /** minimal constructor */
    public AssetOrganisationAssoc(BigDecimal id, BigDecimal ditAssocTypeId, String organisationName, String createBy, Date createDate, String modifyBy, Date modifyDate, IPhysicalAsset physicalAsset) {
        this.id = id;
        this.ditAssocTypeId = ditAssocTypeId;
        this.organisationName = organisationName;
        this.createBy = createBy;
        this.createDate = createDate;
        this.modifyBy = modifyBy;
        this.modifyDate = modifyDate;
        this.physicalAsset = physicalAsset;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getId()
	 */
    @Override
	public BigDecimal getId() {
        return this.id;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setId(java.math.BigDecimal)
	 */
    @Override
	public void setId(BigDecimal id) {
        this.id = id;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getDitAssocTypeId()
	 */
    @Override
	public BigDecimal getDitAssocTypeId() {
        return this.ditAssocTypeId;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setDitAssocTypeId(java.math.BigDecimal)
	 */
    @Override
	public void setDitAssocTypeId(BigDecimal ditAssocTypeId) {
        this.ditAssocTypeId = ditAssocTypeId;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getOrganisationName()
	 */
    @Override
	public String getOrganisationName() {
        return this.organisationName;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setOrganisationName(java.lang.String)
	 */
    @Override
	public void setOrganisationName(String organisationName) {
        this.organisationName = organisationName;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getPercentage()
	 */
    @Override
	public Double getPercentage() {
        return this.percentage;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setPercentage(java.lang.Double)
	 */
    @Override
	public void setPercentage(Double percentage) {
        this.percentage = percentage;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getCreateBy()
	 */
    @Override
	public String getCreateBy() {
        return this.createBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setCreateBy(java.lang.String)
	 */
    @Override
	public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getCreateDate()
	 */
    @Override
	public Date getCreateDate() {
        return this.createDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setCreateDate(java.util.Date)
	 */
    @Override
	public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getModifyBy()
	 */
    @Override
	public String getModifyBy() {
        return this.modifyBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setModifyBy(java.lang.String)
	 */
    @Override
	public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getModifyDate()
	 */
    @Override
	public Date getModifyDate() {
        return this.modifyDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setModifyDate(java.util.Date)
	 */
    @Override
	public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#getPhysicalAsset()
	 */
    @Override
	public IPhysicalAsset getPhysicalAsset() {
        return this.physicalAsset;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#setPhysicalAsset(com.thomsonreuters.ce.edps.model.impl.PhysicalAsset)
	 */
    @Override
	public void setPhysicalAsset(IPhysicalAsset physicalAsset) {
        this.physicalAsset = physicalAsset;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IAssetOrganisationAssoc#toString()
	 */
    @Override
	public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
